home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
examples.arc
/
EXAMPL13.PRO
< prev
next >
Wrap
Text File
|
1986-10-07
|
504b
|
22 lines
/* Program 13 */
/*
Goal to enter is on page 51 of the manual.
Other goals to try are on pages 52-53.
*/
domains
title,author = symbol
pages = integer
publication = book(title,pages)
predicates
written_by(author,publication)
long_novel(publication)
clauses
written_by(fleming,book("DR NO",210)).
written_by(melville,book("MOBY DICK",600)).
long_novel(book(Title,Length)):-
written_by(_,book(Title,Length)),
Length>300.